<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">

<!--                        <div th:text="${examinationResultsComDO}"></div>-->

                        <input type="hidden" name="id" th:value="${examinationResultsComDO.id}">
                        <input type="hidden" name="type" id="type" th:value="${examinationResultsComDO.type}">
<!--    b赛场裁判-->
                        <div id="b">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判一改分：</label>
                                <div class="col-sm-8">
                                    <p>生活照护</p>
                                    <input name="scoingb1" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb1}">
                                    <p>安全照护</p>
                                    <input name="scoingb1s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb1s}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判二改分：</label>
                                <div class="col-sm-8">
                                    <p>生活照护</p>
                                    <input name="scoingb2" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb2}">
                                    <p>安全照护</p>
                                    <input name="scoingb2s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb2s}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判三改分：</label>
                                <div class="col-sm-8">
                                    <p>生活照护</p>
                                    <input name="scoingb3" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb3}">
                                    <p>安全照护</p>
                                    <input name="scoingb3s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb3s}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判四改分：</label>
                                <div class="col-sm-8">
                                    <p>生活照护</p>
                                    <input name="scoingb4" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb4}">
                                    <p>安全照护</p>
                                    <input name="scoingb4s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb4s}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判五改分：</label>
                                <div class="col-sm-8">
                                    <p>生活照护</p>
                                    <input name="scoingb5" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb5}">
                                    <p>安全照护</p>
                                    <input name="scoingb5s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingb5s}">
                                </div>
                            </div>
                        </div>

                        <!--    c赛场裁判-->
                        <div id="c">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判一改分：</label>
                                <div class="col-sm-8">
                                    <p>故事讲述</p>
                                    <input name="scoingc1" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc1}">
                                    <p>韵律活动组织</p>
                                    <input name="scoingc1s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc1s}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判二改分：</label>
                                <div class="col-sm-8">
                                    <p>故事讲述</p>
                                    <input name="scoingc2" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc2}">
                                    <p>韵律活动组织</p>
                                    <input name="scoingc2s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc2s}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判三改分：</label>
                                <div class="col-sm-8">
                                    <p>故事讲述</p>
                                    <input name="scoingc3" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc3}">
                                    <p>韵律活动组织</p>
                                    <input name="scoingc3s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc3s}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判四改分：</label>
                                <div class="col-sm-8">
                                    <p>故事讲述</p>
                                    <input name="scoingc4" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc4}">
                                    <p>韵律活动组织</p>
                                    <input name="scoingc4s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc4s}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">裁判五改分：</label>
                                <div class="col-sm-8">
                                    <p>故事讲述</p>
                                    <input name="scoingc5" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc5}">
                                    <p>韵律活动组织</p>
                                    <input name="scoingc5s" class="form-control" type="text" th:value="${examinationResultsComDO.scoingc5s}">
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="button" onclick="update()" class="btn btn-primary">提交</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script>

    let type = $("#type").val();
    if( type == 2 ){
        $("#b").remove();
    }
    if( type == 1 ){
        $("#c").remove();
    }
    function update() {
        $.ajax({
            cache : true,
            type : "get",
            url : "/jzweb/stuSignUpScoring/updateScoingABCUpdate",
            data : $('#signupForm').serialize(),// 你的formid
            async : false,
            error : function(request) {
                parent.layer.alert("Connection error");
            },
            success : function(data) {
                if (data.code == 0) {
                    parent.layer.msg("操作成功");
                    parent.reLoad();
                    var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
                    parent.layer.close(index);

                } else {
                    parent.layer.alert(data.msg)
                }

            }
        });

    }

</script>
</body>
</html>
